package com.thb.pay.api.sys;


import com.thb.pay.core.utils.PageResult;
import com.thb.pay.vo.req.SysLogPageReq;
import com.thb.pay.vo.req.SysLogReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * <p>
 * 系统-操作日志表 前端控制器
 * </p>
 *
 * @author lucky
 * @since 2019-07-21
 */
@FeignClient(value = "pay-service", fallbackFactory = SysLogServiceApiFallbackFactory.class)
@RequestMapping("/sysLogApi")
public interface SysLogServiceApi {

    @RequestMapping(value = "/findPage", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
    PageResult<SysLogReq> findPage(@RequestBody SysLogPageReq pageReq);


    @RequestMapping(value = "/addLog", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
    void addLog(@RequestBody SysLogReq logReq);

}
